package com.bjpowernode.service.impl;

import com.bjpowernode.entity.TProduct;
import com.bjpowernode.mapper.TProductMapper;
import com.bjpowernode.service.ProductService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductServiceImpl implements ProductService {
    /**
     * 产品数据访问对象
     * 用于与数据库交互，执行产品相关的CRUD操作
     */
    @Resource
    private TProductMapper tProductMapper;

    @Override
    public List<TProduct> getProducts() {
        return tProductMapper.getProducts();
    }

    @Override
    public List<TProduct> getProductType() {
        return tProductMapper.getProductType();
    }
}
